<jsp:include page="header.jsp" />
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Questionnaire</title>
</head>
<body>
	<!-- Three columns -->
	<div class="content box">

		<div class="content-in box">

<%-- if the session is not logged in, you are redirected the the register.jsp page --%>		
<%
if(session.getAttribute("loggedIn") != Boolean.TRUE) {
    String redirect = "http://localhost:8080/UBCDatingServer/register.jsp";
    response.sendRedirect(redirect);
	}
%>

			<h2>About you</h2>
						<form action="/UBCDatingServer/questionnaire" method="post">
			<table>
				<tr>
					<td class=formquestion>What is your Gender?</td>
					<td>
							<input type="hidden" name="userID"
								value="<%=session.getAttribute("userID")%>" />
								
<input type="radio" name="myGender" value="1" /> Male <input
						type="radio" name="myOrientation" value="2" /> Female</td> 

				<tr>
				<tr>
					<td class=formquestion>When is your birthday?:</td>
					<td><select name="bMonth">
							<option value="1">January</option>
							<option value="2">February</option>
							<option value="3">March</option>
							<option value="4">April</option>
							<option value="5">May</option>
							<option value="6">June</option>
							<option value="7">July</option>
							<option value="8">August</option>
							<option value="9">September</option>
							<option value="10">October</option>
							<option value="11">November</option>
							<option value="12">December</option>
					</select> <select name="bDate">
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
							<option value="9">9</option>
							<option value="10">10</option>
							<option value="11">11</option>
							<option value="12">12</option>
							<option value="13">13</option>
							<option value="14">14</option>
							<option value="15">15</option>
							<option value="16">16</option>
							<option value="17">17</option>
							<option value="18">18</option>
							<option value="19">19</option>
							<option value="20">20</option>
							<option value="21">21</option>
							<option value="22">22</option>
							<option value="23">23</option>
							<option value="24">24</option>
							<option value="25">25</option>
							<option value="26">26</option>
							<option value="27">27</option>
							<option value="28">28</option>
							<option value="29">29</option>
							<option value="30">30</option>
							<option value="31">31</option>
					</select> <select name="bYear">
							<option value="88">1980</option>
							<option value="89">1981</option>
							<option value="90">1982</option>
							<option value="91">1983</option>
							<option value="88">1984</option>
							<option value="89">1985</option>
							<option value="90">1986</option>
							<option value="91">1987</option>
							<option value="88">1988</option>
							<option value="89">1989</option>
							<option value="90">1990</option>
							<option value="91">1991</option>
							<option value="88">1992</option>
							<option value="89">1993</option>
							<option value="90">1994</option>
							<option value="91">1995</option>
					</select></td>

				</tr>
				<tr>
					<td class=formquestion>What is your home address:</td>
					<td><input type="text" size="30" class="input"
						name="myAddress" /></td>
				</tr>
				<tr>
					<td class=formquestion>What is your height (in cm)?</td>
					<td><input type="text" size="3" maxlength=3 class="input" name="myHeight" /></td>
				</tr>
				<tr>
					<td class=formquestion>What is your weight (in lbs)?</td>
					<td><input type="text" size="3" maxlength=3 class="input" name="myWeight" /></td>
				</tr>
				<tr>
					<td class=formquestion>What is your ethnicity?</td>
					<td><select name="myEthnicity">
							<option value="Asian">Asian</option>
							<option value="African">African</option>
							<option value="European">European</option>
							<option value="Doesn't matter">Rather not say</option>
					</select>
				<tr>
				<tr>
					<td class=formquestion>What is your religion?</td>
					<td><select name="myReligion">
							<option value="christian">Christian</option>
							<option value="muslim">Muslim</option>
							<option value="hindu">Hindu</option>
							<option value="buddhist">Buddhist</option>
							<option value="atheist">Atheist</option>
							<option value="agnostic">Agnostic</option>
							<option value="nopref">No preference</option>
					</select>
				</tr>
				<td class=formquestion>What are you favourite interests?<br> *Pick AT LEAST 1.</td>
				<td><input type="checkbox" name="interest" value="Swimming" />
					Swimming <br /> <input type="checkbox" name="interest"
					value="Running" /> Running<br /> <input type="checkbox"
					name="interest" value="Movies" /> Movies <br /> <input
					type="checkbox" name="interest" value="Skating" /> Skating<br />
					<input type="checkbox" name="interest" value="Skiing" /> Skiing<br />
					<input type="checkbox" name="interest" value="Reading" /> Reading
					<br /> <input type="checkbox" name="interest" value="Hiking" />
					Hiking<br /> <input type="checkbox" name="interest"
					value="Drinking" /> Drinking<br /> <input type="checkbox"
					name="interest" value="Eating" /> Eating <br /> <input
					type="checkbox" name="interest" value="Play Music" /> Play Music <br />
					<input type="checkbox" name="interest" value="Listen to Music" />
					Listen to Music <br /> <input type="checkbox" name="interest"
					value="Travelling" /> Travelling <br /> <input type="checkbox"
					name="interest" value="Video Games" /> Video Games <br /> <input
					type="checkbox" name="interest" value="Religion" /> Religion <br />


				</td>
				
			</table>


			<br />

			<h2>What you are looking for:</h2>
			<table>
				<tr>
				<tr>
					<td class=formquestion>What Gender are you looking for?</td>
					<td><input type="radio" name="myOrientation" value="1" /> Male <input
						type="radio" name="myOrientation" value="2" /> Female</td>
				</tr>
				<tr>
					<td class=formquestion>What age are you looking for?</td>
					<td>From: <input name="ageLowerPref" class="input" value=""
						size=5 maxlength=2> To: <input name="ageHigherPref"
						class="input" value="" size=5 maxlength=2></td>
				</tr>
				<tr>
					<td class=formquestion>What is their height (in cm)?</td>
					<td>From: <input name="heightLowerPref" class="input" value=""
						size=5 maxlength=3> To: <input name="heightHigherPref"
						class="input" value="" size=5 maxlength=3></td>
				</tr>
				<tr>
					<td class=formquestion>What is their weight (in lbs)?</td>
					<td>From: <input name="weightLowerPref" class="input" value=""
						size=5 maxlength=3> To: <input name="weightHigherPref"
						class="input" value="" size=5 maxlength=3></td>
				</tr>

				<tr>
					<td class=formquestion>What is their ethnicity?</td>
					<td><select name="ethnicityPref">
							<option value="Asian">Asian</option>
							<option value="African">African</option>
							<option value="European">European</option>
							<option value="Doesn't matter">Rather not say</option>
					</select></td>
				<tr>
					<td class=formquestion>What is their religion?</td>
					<td><select name="religionPref">
							<option value="christian">Christian</option>
							<option value="muslim">Muslim</option>
							<option value="hindu">Hindu</option>
							<option value="buddhist">Buddhist</option>
							<option value="atheist">Atheist</option>
							<option value="agnostic">Agnostic</option>
							<option value="nopref">No preference</option>
					</select>
				</tr>
			</table>
			</td>
			</tr>
			</table>
			<br /> <input type="submit" value="Submit" class="input-submit" />
			</form>
</body>
</html>
<br>
</br>
<jsp:include page="footer.jsp" />